package com.sinping.qh.api.support;

import lombok.Getter;

/**
 * 系统接口结果常量枚举类
 * Created by liuqingpei on 2017/8/10.
 */
@Getter
public enum ConstEum {

    SUCCESS(Const.SUCCESS, "操作成功"),
    FAIL(Const.DATA_ERROR, "操作失败"),
    SERVER_ERROR(Const.SERVER_ERROR, "服务端未知错误"),
    PARAM_ERROR(Const.PARAM_ERROR, "参数验证不通过"),
    FORMAT_ERROR(Const.FORMAT_ERROR, "传递的json格式有误");

    public int status;

    public String message;

    ConstEum(int code, String message) {
        this.status = code;
        this.message = message;
    }
}
